﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CentralSystem.aspx.cs" Inherits="AfvandingKlient.Default" %>

<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Centralsystem</title>
        <link rel="stylesheet" type="text/css" href="style.css" />
        <style type="text/css">
            #centralsystem { height: 598px; }
        </style>
    </head>
    <body>
        <form id="centralsystem" runat="server">
            <div>
                <h1>Centralsystem</h1>
                <br /><br />
                <div id="Pumpestationer">
                    <asp:GridView ID="gridPumpestationer" HorizontalAlign="Center" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="240px" AutoGenerateSelectButton="True" DataKeyNames="PumpestationsNr" OnSelectedIndexChanged="gridPumpestationer_SelectedIndexChanged">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                    <br />
                    <asp:Button ID="btnOpretPumpestation" runat="server" Text="Opret Pumpestation" OnClick="btnOpretPumpestation_Click" />
                    <asp:Button ID="btnOpdatérPumpestation" runat="server" Text="Opdatér Pumpestation" OnClick="btnOpdatérPumpestation_Click" />
                    <asp:Button ID="btnSletPumpestation" runat="server" Text="Slet Pumpestation" OnClick="btnSletPumpestation_Click" /><br /> <br />
                    <asp:Label ID="lblSelectedPumpStation" runat="server" Text="Label"></asp:Label>
                    <br />
                </div>
            

                <div id="Pumper">
                    <asp:GridView ID="gridPumper" HorizontalAlign="Center" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateSelectButton="True" DataKeyNames="Pumpenr" Width="226px" OnSelectedIndexChanged="gridPumper_SelectedIndexChanged1">
              
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>      
                    <br />
                    <asp:Button ID="btnOpretPumpe" runat="server" Text="Opret Pumpe" OnClick="btnOpretPumpe_Click" />
                    <asp:Button ID="btnOpdaterPumpe" runat="server" Text="Opdatér Pumpe" OnClick="btnOpdaterPumpe_Click" />
                    <asp:Button ID="btnSletPumpe" runat="server" Text="Slet Pumpe" OnClick="btnSletPumpe_Click" />
                    <asp:Button ID="btnStartPumpe" runat="server" Text="Start Pumpe" OnClick="btnStartPumpe_Click" />
                    <asp:Button ID="btnStopPumpe" runat="server" Text="Stop Pumpe" OnClick="btnStopPumpe_Click" /><br />
                    <asp:Button ID="btnStatus" runat="server" Text="Se status" OnClick="btnStatus_Click" />
                    <asp:Button ID="btnStatuses" runat="server" Text="Se statusser" OnClick="btnStatuses_Click" /><br /><br />
                    <asp:Label ID="lblSelectedPump" runat="server" Text="Label"></asp:Label>
                </div>
                <asp:Chart ID="chartVandstand" runat="server">
                    <Series>
                        <asp:Series Name="Series1" XValueMember="Key" YValueMembers="Value" ChartType="Column"> 
                    
                        </asp:Series>
                
                    </Series>
                    <ChartAreas>
                        <asp:ChartArea Name="Vandstandslog">
                    
                            <AxisY Title="Vandstand i mm" Minimum="0">
                            </AxisY>
                            <AxisX Title="Dato" IsLabelAutoFit="True" Minimum="0">
                                <LabelStyle Angle="-90" Interval="1" />
                            </AxisX>
                        </asp:ChartArea>

                    </ChartAreas>
                </asp:Chart>
            </div>
            <p>
        
            </p>
        </form>
    </body>
</html>